package api.rowan.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("动物")
public class Pet implements Serializable {

    @ApiModelProperty("动物名字")
    private String name;
    @ApiModelProperty("动物种类")
    private String type;
    @ApiModelProperty("出生时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date born;

}
